<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "oauth_access_token".
 *
 * @property integer $id
 * @property string $access_token
 * @property integer $expired_time
 * @property integer $create_time
 */
class OauthAccessToken extends \yii\db\ActiveRecord {
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'oauth_access_token';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['expired_time', 'create_time'], 'integer'],
            [['access_token', 'jsapi_ticket'], 'string', 'max' => 600],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id'           => 'ID',
            'access_token' => 'Access Token',
            'jsapi_ticket' => 'Jsapi Ticket',
            'expired_time' => 'Expired Time',
            'create_time'  => 'Create Time',
        ];
    }
}
